package com.xuyiwei.mayi.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by xuyiwei on 2019/4/26.
 */
@Data
public class UserEntity {

    private Integer id;
    private String username;
    private String password;
    private String phone;
    private String email;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date created;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date updated;
}